<?php
$this->headTitle('Danh mục BĐS','append');
?>
<div class="dashboard-menu dashboard-admin">
    <span class="back">&nbsp;</span>
    <a href="/admin/role"><h1>Bất động sản</h1></a>
    <span class="text">Thêm</span>
</div>
<div class="row placeholders">
    <div class="col-md-12">
        <div class="widget-big">
            <div class="search-result text-left">
                <?php                    
                    if(isset($this->mess)){
                        if($this->flag == 'success')
                            echo '<div class="bg-success">',$this->mess,'</div>';
                        elseif($this->flag == 'alert')
                            echo '<div class="bg-warning">',$this->mess,'</div>';
                        else
                            echo '<div class="bg-danger">',$this->mess,'</div>';
                    }
                ?>                
                <form id="form" class="form-option" method="post" action="" enctype="multipart/form-data" name="form">
                    <dl class="zend_form">                        
                        <?php echo $this->form->estateId?>
                        <?php echo $this->form->estateName?>
                        <?php echo $this->form->estateCode?>                        
                        <dt><label>Loại giao dịch</label></dt>
                        <dd>
                            <div class="option-wrapper">
                                <div class="fieldset">
                                    <div class="legend"><input type="checkbox"/><label>Chọn hết</label></div>
                                    <div class="fieldset-content">
                                    <ul>                                                       
                                        <li><?php echo $this->form->rent?><label><?php echo $this->form->rent->getLabel()?></label></li>
                                        <li><?php echo $this->form->sale?><label><?php echo $this->form->sale->getLabel()?></label></li>                                                                                                                    
                                        <div class="clearfix"></div>
                                    </ul>
                                    </div>
                                </div>
                            </div>
                        </dd>
                        
                        <dt><label>Thông tin khác</label></dt>
                        <dd>
                            <div class="option-wrapper">
                                <div class="fieldset">
                                    <div class="legend"><input type="checkbox"/><label>Chọn hết</label></div>
                                    <div class="fieldset-content">
                                    <ul>                                        
                                    <?php                                         
                                        foreach ($this->otherInfo as $info){
                                            if($info['groupInfo'] == 'otherInfo'){                                                
                                                $element = $info['id'];                                                                                                
                                    ?>
                                            <li><?php echo $this->form->$element?><label><?=$this->form->$element->getLabel()?></label></li>
                                    <?php                                                
                                            }
                                        }
                                    ?>
                                    <div class="clearfix"></div>
                                    </ul>
                                    </div>
                                </div>
                            </div>
                        </dd>                        
                        <dt><label>Tiện ích khác</label></dt>
                        <dd>
                            <div class="option-wrapper">
                                <div class="fieldset">
                                    <div class="legend"><input type="checkbox"/><label>Chọn hết - Element Type: Checkbox</label></div>
                                    <div class="fieldset-content">
                                    <ul>
                                    <?php 
                                        foreach ($this->otherInfo as $info){
                                            if($info['groupInfo'] == 'otherUtility'){
                                                $element = $info['id'];
                                    ?>
                                            <li><?php echo $this->form->$element?><label><?=$this->form->$element->getLabel()?></label></li>
                                    <?php                                                
                                            }
                                        }
                                    ?>                                                                        
                                    <div class="clearfix"></div>
                                    </ul>
                                    </div>
                                </div>
                            </div>
                        </dd>                                                                                                                        
                        
                        <?=$this->form->submit?>
                        <?=$this->form->reset?>    
                        
                    </dl>
                </form>
            </div>
        </div>
    </div>
</div>


